<?php
namespace Admin\Controller;
use Think\Controller;


class BaseController extends Controller {
//检测用户是否登录
    protected  function  login(){
            if (session('?auth')){
                return 1;
            }else {
                $this->redirect('Login/index');
               
            }
    }
            
            
            
            
            
            
            
            
            
            
}